package com.py.inbound.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 进货订单对象 od_purchase_order
 *
 * @author 童佳
 * @date 2024-11-21
 */
public class OdPurchaseOrder extends BaseEntity {
    //扩展id
    private Integer supplierId;

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    private SysDept sysDept;
    private PySuppliers pySuppliers;
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Integer phId;

    /**
     * 进货单号
     */
    @Excel(name = "进货单号")
    private String phCode;

    /**
     * 单据状态
     */
    @Excel(name = "单据状态")
    private String phState;

    /**
     * 进货日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date phDate;

    /**
     * 供应商
     */
    @Excel(name = "供应商")
    private String supplier;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    private String contacts;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String phone;

    /**
     * 进货部门
     */
    @Excel(name = "进货部门")
    private Long phDept;

    /**
     * 进货人
     */
    @Excel(name = "进货人")
    private String phPerson;

    /**
     * 备注
     */
    private String phRemark;

    /**
     * 货品数量
     */
    @Excel(name = "货品数量")
    private Long goodsNum;

    /**
     * 货品金额
     */
    @Excel(name = "货品金额")
    private BigDecimal goodsMoney;

    /**
     * 所在部门
     */
    @Excel(name = "所在部门")
    private Integer createDept;

    /**
     * 审核人
     */
    @Excel(name = "审核人")
    private String reviewer;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewerTime;

    /**
     * 逻辑删除
     */
    private String isDel;

    @Transient
    private Integer number;
    @Transient
    private Integer codeId;
    @Transient
    private List<Object> fileList;

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public PySuppliers getPySuppliers() {
        return pySuppliers;
    }

    public void setPySuppliers(PySuppliers pySuppliers) {
        this.pySuppliers = pySuppliers;
    }


    public void setPhId(Integer phId) {
        this.phId = phId;
    }

    public Integer getPhId() {
        return phId;
    }

    public void setPhCode(String phCode) {
        this.phCode = phCode;
    }

    public String getPhCode() {
        return phCode;
    }

    public void setPhState(String phState) {
        this.phState = phState;
    }

    public String getPhState() {
        return phState;
    }

    public void setPhDate(Date phDate) {
        this.phDate = phDate;
    }

    public Date getPhDate() {
        return phDate;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContacts() {
        return contacts;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhDept(Long phDept) {
        this.phDept = phDept;
    }

    public Long getPhDept() {
        return phDept;
    }

    public void setPhPerson(String phPerson) {
        this.phPerson = phPerson;
    }

    public String getPhPerson() {
        return phPerson;
    }

    public void setPhRemark(String phRemark) {
        this.phRemark = phRemark;
    }

    public String getPhRemark() {
        return phRemark;
    }

    public void setGoodsNum(Long goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Long getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsMoney(BigDecimal goodsMoney) {
        this.goodsMoney = goodsMoney;
    }

    public BigDecimal getGoodsMoney() {
        return goodsMoney;
    }

    public void setCreateDept(Integer createDept) {
        this.createDept = createDept;
    }

    public Integer getCreateDept() {
        return createDept;
    }

    public void setReviewer(String reviewer) {
        this.reviewer = reviewer;
    }

    public String getReviewer() {
        return reviewer;
    }

    public void setReviewerTime(Date reviewerTime) {
        this.reviewerTime = reviewerTime;
    }

    public Date getReviewerTime() {
        return reviewerTime;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public String getIsDel() {
        return isDel;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getCodeId() {
        return codeId;
    }

    public void setCodeId(Integer codeId) {
        this.codeId = codeId;
    }

    @Override
    public String toString() {
        return "OdPurchaseOrder{" +
                "sysDept=" + sysDept +
                ", pySuppliers=" + pySuppliers +
                ", phId=" + phId +
                ", phCode='" + phCode + '\'' +
                ", phState='" + phState + '\'' +
                ", phDate=" + phDate +
                ", supplier='" + supplier + '\'' +
                ", contacts='" + contacts + '\'' +
                ", phone='" + phone + '\'' +
                ", phDept=" + phDept +
                ", phPerson='" + phPerson + '\'' +
                ", phRemark='" + phRemark + '\'' +
                ", goodsNum=" + goodsNum +
                ", goodsMoney=" + goodsMoney +
                ", createDept=" + createDept +
                ", reviewer='" + reviewer + '\'' +
                ", reviewerTime=" + reviewerTime +
                ", isDel='" + isDel + '\'' +
                ", number=" + number +
                ", codeId=" + codeId +
                ", fileList=" + fileList +
                '}';
    }

    public List<Object> getFileList() {
        return fileList;
    }

    public void setFileList(List<Object> fileList) {
        this.fileList = fileList;
    }



}
